<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>循环</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app-4">
        <ol>
            <li v-for="todo in todos">
                {{ todo.text }}
            </li>
        </ol>
    </div>    
</body>
<script>
    var app4 = new Vue({
        el: '#app-4',
        data: {
            todos:[
                {text: '学习 js'},
                {text: '学习 css'},
                {text: '学习 html5'}
            ]
        }
    })
</script>
</html>